docs: add missing Solidity 0.8 attack vectors#11
Open
AJTECH001 wants to merge 2 commits intopashov:mainfrom
Open
docs: add missing Solidity 0.8 attack vectors#11AJTECH001 wants to merge 2 commits intopashov:mainfrom
AJTECH001 wants to merge 2 commits intopashov:mainfrom
Conversation
pashov
reviewed
Mar 7, 2026
| - **D:** Contract relies on strict equality `this.balance == value` for state transitions. Attacker forcibly sends Ether via `selfdestruct` or pre-computation to manipulate the balance and bypass logic. | ||
| - **FP:** Contract tracks deposited Ether via a self-defined variable, or inequality (`this.balance >= value`) is used and safely handled. | ||
|
|
||
| **172. Short Address/Parameter Attack** |
Owner
There was a problem hiding this comment.
I see only this one as valuable - any chance we can make these to be 3 good ones?
Author
There was a problem hiding this comment.
Hi @pashov, I've updated the PR, kept only the Short Address/Parameter Attack.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request
Type of Change
Summary
Adds Short Address/Parameter Attack as a new reference vector (171), covering truncated calldata inputs that cause EVM zero-padding and potential parameter manipulation.
Changes
solidity-auditor/references/attack-vectors/attack-vectors-4.md:attack-vectors-1.mdattack-vectors-2.mdattack-vectors-3.mdattack-vectors-4.mdTesting
Describe how you tested the skill. Paste a representative input/output pair:
Input:
Output:
Checklist